package com.electronsys.emp.action;

import java.util.List;

import com.electronsys.emp.service.EmpDaoService;
import com.electronsys.pojo.Department;
import com.opensymphony.xwork2.ActionSupport;

public class newEmpAction extends ActionSupport{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6913312015935097620L;

	public EmpDaoService empDaoService;
	public List<Department> list;
	public String msg;
	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String execute(){
		
		list=empDaoService.deptService();
		
		return "success";
	}

	public List<Department> getList() {
		return list;
	}
	public void setList(List<Department> list) {
		this.list = list;
	}
	public void setEmpDaoService(EmpDaoService empDaoService) {
		this.empDaoService = empDaoService;
	}

}
